//
//  ViewExt.swift
//  JiaoZiTaxi
//
//  Created by Hu Gang on 2022/11/25.
//

import Foundation
import SwiftUI

extension View {
    func hideKeyboard() {
        UIApplication.shared.sendAction(
            #selector(UIResponder.resignFirstResponder),
            to: nil,
            from: nil,
            for: nil
        )
    }
}
